Source File
matcher.go
Belonging Package
github.com/K-Phoen/grabana/timeseries/fields
package fieldsimport ()type Matcher func(field *sdk.FieldConfigOverride)type FieldType stringconst (FieldTypeTime FieldType = "time")// ByName matches a specific field name.func ( string) Matcher {return func( *sdk.FieldConfigOverride) {.Matcher.ID = "byName".Matcher.Options =}}// ByQuery matches all fields returned by the given query.func ( string) Matcher {return func( *sdk.FieldConfigOverride) {.Matcher.ID = "byFrameRefID".Matcher.Options =}}// ByRegex matches fields names using a regex.func ( string) Matcher {return func( *sdk.FieldConfigOverride) {.Matcher.ID = "byRegexp".Matcher.Options =}}// ByType matches fields with a specific type.func ( FieldType) Matcher {return func( *sdk.FieldConfigOverride) {.Matcher.ID = "byType".Matcher.Options = string()}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |